<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <title>修改角色</title>
    <meta http-equiv="keywords" content="enter,your,keywords,here" />
    <meta http-equiv="description" content="A short description of this page." />
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" type="text/css" href="${basePath}css/cmxform.css" />
    <#include "/template/head.html" />
    <script language="javascript">
    $(function() {
      $('#roleForm').validate({
        rules: {
          roleName: {required: true}
        }
      });
    });
    </script>
    
  </head>
  <body>
    <br />
    <form id="roleForm" action="${basePath}admin/role/update.do" method="post">
      <input type="hidden" name="id" value="${role.id}"/>
      <table class="cmxform" style="width: 85%"> 
        <caption>修&nbsp;&nbsp;&nbsp;改&nbsp;&nbsp;&nbsp;角&nbsp;&nbsp;&nbsp;色</caption>
        <tr>
          <th width="120">角色名称：</th>
          <td><input name="roleName" value="${role.roleName}"/></td>
        </tr>
        <tr>
          <th>病人信息卡权限：</th>
          <td>
            <label for="addBrxx">新增</label>
            <input name="addBrxx" type="checkbox" <#if role.addBrxx>checked="checked"</#if> /><br />
            <label for="editBrxx">修改</label>
            <input name="editBrxx" type="checkbox" <#if role.editBrxx>checked="checked"</#if> /><br />
            <label for="delBrxx">删除</label>
            <input name="delBrxx" type="checkbox" <#if role.delBrxx>checked="checked"</#if> /><br />
            <label for="cancelBrxx">取消退回</label>
            <input name="cancelBrxx" type="checkbox" <#if role.cancelBrxx>checked="checked"</#if> /><br />
          </td>
        </tr>
        <tr>
          <th>药敏结果权限：</th>
          <td>
            <label for="addYmjg">新增</label>
            <input name="addYmjg" type="checkbox" <#if role.addYmjg>checked="checked"</#if>/><br />
            <label for="editYmjg">修改</label>
            <input name="editYmjg" type="checkbox" <#if role.editYmjg>checked="checked"</#if>/><br />
            <label for="delYmjg">删除</label>
            <input name="delYmjg" type="checkbox" <#if role.delYmjg>checked="checked"</#if>/><br />
          </td>
        </tr>
        <tr>
          <th>超级管理员：</th>
          <td valign="middle"><input name="admin" type="checkbox" <#if role.admin>checked="checked"</#if>/>（用户管理，角色管理）</td>
        </tr>
        <tr>
          <th></th>
          <td><button type="submit" class="save"/></td>
        </tr>
      </table>
    </form>
  </body>
</html>
